home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / USIOCTL.H < prev    next >
Text File  |  1999-09-17  |  665b  |  26 lines

  1. /*
  2.  * usema/usemaclone-related stuff.
  3.  *
  4.  * `Inspired' by IRIX's sys/usioctl.h
  5.  *
  6.  * Mike.
  7.  */
  8.  
  9. /* ioctls */
  10. #define UIOC    ('u' << 16 | 's' << 8)
  11.  
  12. #define UIOCATTACHSEMA    (UIOC|2)    /* attach to sema */
  13. #define UIOCBLOCK    (UIOC|3)    /* block sync "intr"? */
  14. #define UIOCABLOCK    (UIOC|4)    /* block async */
  15. #define UIOCNOIBLOCK    (UIOC|5)    /* IRIX: block sync intr
  16.                        Linux: block sync nointr */
  17. #define UIOCUNBLOCK    (UIOC|6)    /* unblock sync */
  18. #define UIOCAUNBLOCK    (UIOC|7)    /* unblock async */
  19. #define UIOCINIT    (UIOC|8)    /* init sema (async) */
  20.  
  21. typedef struct usattach_s {
  22.   dev_t    us_dev;        /* attach dev */
  23.   void    *us_handle;    /* userland semaphore handle */
  24. } usattach_t;
  25.  
  26.